package com.zx.work1.factory;

import com.zx.work1.Dao.StudentDao;
import com.zx.work1.Dao.StudentDaoImp;
import com.zx.work1.bean.Student;

public class StudentDaoFactory {

    /**
     * 通过静态工程方法模式来实现StudentDao实现类对象的创建并返回
     * @return
     */
    public static StudentDao getStudentDao(){
        return new StudentDaoImp();
    }
}
